package com.ftm.entity;
/**
 * 商铺的实体类
 * @author ZZP
 *
 */
public class Shop {
	/**
	 * shopid 店铺序号
	 * shopname 店铺名
	 * shoppwd 店铺密码
	 * shopuser  店家
	 * shopphone 店家电话
	 * shopstate  店家状态 0表示异常/1表示正常
	 */
	private int shopid;
	private String shopname;
	private String shoppwd;
	private String shopuser;
	private String shopphone;
	private int shopstate;
	
	//无参构造
	public Shop() {
		// TODO Auto-generated constructor stub
	}
	/** id自增的带参构造
	 * @param shopname
	 * @param shoppwd
	 * @param shopuser
	 * @param shopphone
	 * @param shopstate
	 */
	public Shop(String shopname, String shoppwd, String shopuser, String shopphone, int shopstate) {
		super();
		this.shopname = shopname;
		this.shoppwd = shoppwd;
		this.shopuser = shopuser;
		this.shopphone = shopphone;
		this.shopstate = shopstate;
	}
	/**带参构造
	 * @param shopid
	 * @param shopname
	 * @param shoppwd
	 * @param shopuser
	 * @param shopphone
	 * @param shopstate
	 */
	public Shop(int shopid, String shopname, String shoppwd, String shopuser, String shopphone, int shopstate) {
		super();
		this.shopid = shopid;
		this.shopname = shopname;
		this.shoppwd = shoppwd;
		this.shopuser = shopuser;
		this.shopphone = shopphone;
		this.shopstate = shopstate;
	}


	/**
	 * @return the shopid
	 */
	public int getShopid() {
		return shopid;
	}


	/**
	 * @param shopid the shopid to set
	 */
	public void setShopid(int shopid) {
		this.shopid = shopid;
	}


	/**
	 * @return the shopname
	 */
	public String getShopname() {
		return shopname;
	}


	/**
	 * @param shopname the shopname to set
	 */
	public void setShopname(String shopname) {
		this.shopname = shopname;
	}


	/**
	 * @return the shoppwd
	 */
	public String getShoppwd() {
		return shoppwd;
	}


	/**
	 * @param shoppwd the shoppwd to set
	 */
	public void setShoppwd(String shoppwd) {
		this.shoppwd = shoppwd;
	}


	/**
	 * @return the shopuser
	 */
	public String getShopuser() {
		return shopuser;
	}


	/**
	 * @param shopuser the shopuser to set
	 */
	public void setShopuser(String shopuser) {
		this.shopuser = shopuser;
	}


	/**
	 * @return the shopphone
	 */
	public String getShopphone() {
		return shopphone;
	}


	/**
	 * @param shopphone the shopphone to set
	 */
	public void setShopphone(String shopphone) {
		this.shopphone = shopphone;
	}


	/**
	 * @return the shopstate
	 */
	public int getShopstate() {
		return shopstate;
	}


	/**
	 * @param shopstate the shopstate to set
	 */
	public void setShopstate(int shopstate) {
		this.shopstate = shopstate;
	}


	@Override
	public String toString() {
		return "商铺信息 [商品id=" + shopid + ", 商铺名=" + shopname + ", 商铺密码=" + shoppwd + ", 店家=" + shopuser
				+ ", 店铺电话=" + shopphone + ", 店铺状态=" + shopstate + "]";
	}
	
	
	
}
